#include"Poller.h"
#include"Channel.h"

    using ChannelList = std::vector<Channel *>;
    Poller::Poller(EventLoop *loop) : ownLoop_(loop) {}
    Poller::~Poller() {}
    // 给所有的IO复用保留统一的接口
    // 判断channel是否在当前Poller中
    bool Poller::hasChannel(Channel *channel) const
    {
        auto it = channels_.find(channel->fd());
        return it != channels_.end() && channel == it->second;
    };
    // EventLoop获取默认的IO复用实现



